package cn.apthink.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 *
 * </p>
 *
 * @author David唐
 * @since 2024-01-25
 */
@Getter
@Setter
@ToString
@TableName("menu")
@ApiModel(value = "MenuEntity对象", description = "")
public class MenuEntity {

    @ApiModelProperty(value="字段id", name="id")
    @TableId("id")
    private String id;

    @ApiModelProperty(value="字段pid", name="pid")
    @TableField("pid")
    private String pid;

    @ApiModelProperty(value="字段url", name="url")
    @TableField("url")
    private String url;

    @ApiModelProperty(value="字段icon", name="icon")
    @TableField("icon")
    private String icon;

    @ApiModelProperty(value="字段seq", name="seq")
    @TableField("seq")
    private Integer seq;

    @ApiModelProperty(value="字段enabled", name="enabled")
    @TableField("enabled")
    private Integer enabled;

    @ApiModelProperty(value="字段description", name="description")
    @TableField("description")
    private String description;

    @ApiModelProperty(value="字段createtime", name="createtime")
    @TableField("createtime")
    private String createtime;

    @ApiModelProperty(value="字段updatetime", name="updatetime")
    @TableField(value="updatetime", fill = FieldFill.UPDATE)
    private String updatetime;
}
